<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/resources/templates/template_site.xhtml">
        <ui:define name="title">
            <h:outputText value=""></h:outputText>
        </ui:define>
        <ui:define name="content">
                <p:panel header="#{bundle.ListCommandeclientTitle}" styleClass="jsfcrud_list_form" >
                <h:panelGroup id="messagePanel" layout="block">
                    <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                </h:panelGroup>
                <h:outputText escape="false" value="#{bundle.ListCommandeclientEmpty}" rendered="#{commandeclientController.items.rowCount == 0}"/>
                <h:panelGroup rendered="#{commandeclientController.items.rowCount > 0}">
                    <h:outputText value="#{commandeclientController.pagination.pageFirstItem + 1}..#{commandeclientController.pagination.pageLastItem + 1}/#{commandeclientController.pagination.itemsCount}"/>&nbsp;
                    <h:commandLink action="#{commandeclientController.previous}" value="#{bundle.Previous} #{commandeclientController.pagination.pageSize}" rendered="#{commandeclientController.pagination.hasPreviousPage}"/>&nbsp;
                    <h:commandLink action="#{commandeclientController.next}" value="#{bundle.Next} #{commandeclientController.pagination.pageSize}" rendered="#{commandeclientController.pagination.hasNextPage}"/>&nbsp;
                    <p:dataTable value="#{commandeclientController.items}" var="item" rows="8">
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListCommandeclientTitle_idcommande}"/>
                            </f:facet>
                            <h:outputText value="#{item.idcommande}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListCommandeclientTitle_quantite}"/>
                            </f:facet>
                            <h:outputText value="#{item.quantite}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListCommandeclientTitle_dateReser}"/>
                            </f:facet>
                            <h:outputText value="#{item.dateReser}">
                                <f:convertDateTime pattern="MM/dd/yyyy" />
                            </h:outputText>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListCommandeclientTitle_statutreser}"/>
                            </f:facet>
                            <h:outputText value="#{item.statutreser}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListCommandeclientTitle_etatcomm}"/>
                            </f:facet>
                            <h:outputText value="#{item.etatcomm}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListCommandeclientTitle_idutil}"/>
                            </f:facet>
                            <h:outputText value="#{item.idutil}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListCommandeclientTitle_iditem}"/>
                            </f:facet>
                            <h:outputText value="#{item.iditem}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="&nbsp;"/>
                            </f:facet>
                            <h:commandLink action="#{commandeclientController.prepareView}" value="#{bundle.ListCommandeclientViewLink}"/>
                            <h:outputText value=" "/>
                            <h:commandLink action="#{commandeclientController.prepareEdit}" value="#{bundle.ListCommandeclientEditLink}"/>
                            <h:outputText value=" "/>
                            <h:commandLink action="#{commandeclientController.destroy}" value="#{bundle.ListCommandeclientDestroyLink}"/>
                        </p:column>
                    </p:dataTable>
                </h:panelGroup>
                <br />
                <h:commandLink action="#{commandeclientController.prepareCreate}" value="#{bundle.ListCommandeclientCreateLink}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ListCommandeclientIndexLink}" action="/pages/index" immediate="true" />
                </p:panel>
             
        </ui:define>
    </ui:composition>

</html>
